using System.Runtime.InteropServices;

namespace WindowsAPI.PE
{
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
    public struct VS_VERSIONINFO
    {
        public static int nPaddingOffset { get { return Marshal.OffsetOf(typeof(VS_VERSIONINFO), "Padding1").ToInt32(); } }

        public readonly ushort wLength;
        public readonly ushort wValueLength;
        public readonly ushort wType;
        [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
        public readonly string szKey;
        public readonly ushort Padding1;
    }
}